package com.touzbi.hss.bo;

import java.util.List;

import org.hibernate.Session;

import com.touzbi.hss.beans.Patient;
import com.touzbi.hss.dao.AbstractPatientDAO;
import com.touzbi.hss.dao.PatientDAO;

public class PatientListBO {

	private AbstractPatientDAO patientDAO;
	private String error = null;

	public PatientListBO(Session session) {
		this.patientDAO = new PatientDAO(session);
	}

	public List<Patient> getlistPatient() {
		return this.patientDAO.getPatientList();
	}

	public List<String> getlistColumn() {
		return this.patientDAO.getListColumn();
	}

	public String getError() {
		return this.error;
	}

	public void setError(String error) {
		this.error = error;
	}
}
